
package interface_grafica;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JTextField;

import listeners.ListenersTelaEdicaoDoacao;
import listeners.ListenersTelaEdicaoParceiroPF;
import listeners.ListenersTelaEdicaoSocio;

public class TelaEdicaoParceiroPF extends javax.swing.JPanel {

    private static TelaCadastroParceiroPF instance;

    public static TelaCadastroParceiroPF getInstance() {
        if (instance == null) {
            instance = new TelaCadastroParceiroPF();
        }
        return instance;
    }     
    
    public TelaEdicaoParceiroPF() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        opcaoSexo = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        nomeParceiroPF = new javax.swing.JTextField();
        cpfParceiroPF = new javax.swing.JTextField();
        dataNascParceiroPF = new javax.swing.JTextField();
        emailParceiroPF = new javax.swing.JTextField();
        telefoneParceiroPF = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        ruaEParceiroPF = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        bairroEParceiroPF = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        numeroEParceiroPF = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        complementoEParceiroPF = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        cepEParceiroPF = new javax.swing.JTextField();
        jLabel26 = new javax.swing.JLabel();
        idParceiroPF = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        cidadeEParceiroPF = new javax.swing.JTextField();
        estadoEParceiroPF = new javax.swing.JComboBox();
        btCancelar = new javax.swing.JButton();
        btSalvar = new javax.swing.JButton();
        btRemover = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(1063, 557));

        jLabel1.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel1.setText("Nome completo");

        jLabel9.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
        jLabel9.setText("Endereco");

        jLabel12.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel12.setText("Data nasc.");

        jLabel15.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel15.setText("E-mail");

        jLabel16.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel16.setText("Telefone");

        jLabel18.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel18.setText("CPF");

        nomeParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        cpfParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        dataNascParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        emailParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        telefoneParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel21.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel21.setText("Rua");

        ruaEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel22.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel22.setText("Bairro");

        bairroEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel23.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel23.setText("Nº");

        numeroEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel24.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel24.setText("Complemento");

        complementoEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel25.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel25.setText("CEP");

        cepEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel26.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel26.setText("ID");

        idParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        jLabel27.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel27.setText("Cidade");

        jLabel28.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N
        jLabel28.setText("Estado\n");

        cidadeEParceiroPF.setFont(new java.awt.Font("Segoe UI", 0, 12)); // NOI18N

        estadoEParceiroPF.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Acre", "Alagoas", "Amapa", "Amazonas", "Bahia", "Ceara", "Distrito Federal", "Espirito Santo", "Goias", "Maranhao", "Mato Grosso", "Mato Grosso do Sul", "Minas Gerais", "Para", "Paraiba", "Parana", "Pernambuco", "Piaui", "Rio de Janeiro", "Rio Grande do Norte", "Rio Grande do Sul", "Rondonia", "Roraima", "Santa Catarina", "Sao Paulo", "Sergipe", "Tocantins" }));

        btSalvar.setText("Salvar");
        btSalvar.addActionListener(new ListenersTelaEdicaoParceiroPF());

        btRemover.setText("Remover");
        btRemover.addActionListener(new ListenersTelaEdicaoParceiroPF());

        btCancelar.setText("Cancelar");
        btCancelar.addActionListener(new ListenersTelaEdicaoParceiroPF());

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setText("Edicao de Parceiros - Pessoa Fisica");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(btSalvar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btRemover)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btCancelar)
                .addGap(68, 68, 68))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jSeparator1)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(52, 52, 52)
                                        .addComponent(jLabel9))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(97, 97, 97)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel1)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addGroup(layout.createSequentialGroup()
                                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(cidadeEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jLabel27)
                                                            .addComponent(numeroEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jLabel23))
                                                        .addGap(23, 23, 23)
                                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel22)
                                                            .addComponent(jLabel28)
                                                            .addComponent(estadoEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(bairroEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGap(28, 28, 28)
                                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                            .addComponent(cepEParceiroPF, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                                                            .addComponent(jLabel25)
                                                            .addComponent(complementoEParceiroPF)
                                                            .addComponent(jLabel24)))
                                                    .addComponent(jLabel21)
                                                    .addComponent(ruaEParceiroPF))
                                                .addGroup(layout.createSequentialGroup()
                                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                            .addComponent(telefoneParceiroPF, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
                                                            .addComponent(jLabel16)
                                                            .addComponent(dataNascParceiroPF))
                                                        .addComponent(jLabel12))
                                                    .addGap(54, 54, 54)
                                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel18)
                                                        .addComponent(cpfParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel15)
                                                        .addComponent(emailParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                .addComponent(nomeParceiroPF))
                                            .addComponent(idParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel26))))
                                .addGap(0, 0, Short.MAX_VALUE)))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 422, Short.MAX_VALUE)
                        .addComponent(jLabel2)
                        .addGap(319, 319, 319))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                .addComponent(jLabel26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(idParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nomeParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dataNascParceiroPF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cpfParceiroPF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(telefoneParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(emailParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ruaEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(jLabel24)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(complementoEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(bairroEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numeroEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel27)
                    .addComponent(jLabel28)
                    .addComponent(jLabel25))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cidadeEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(estadoEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cepEParceiroPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btCancelar)
                    .addComponent(btRemover)
                    .addComponent(btSalvar))
                .addGap(28, 28, 28))
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField bairroEParceiroPF;
    private javax.swing.JButton btCancelar;
    private javax.swing.JButton btRemover;
    private javax.swing.JButton btSalvar;
    private javax.swing.JTextField cepEParceiroPF;
    private javax.swing.JTextField cidadeEParceiroPF;
    private javax.swing.JTextField complementoEParceiroPF;
    private javax.swing.JTextField cpfParceiroPF;
    private javax.swing.JTextField dataNascParceiroPF;
    private javax.swing.JTextField emailParceiroPF;
    private javax.swing.JComboBox estadoEParceiroPF;
    private javax.swing.JTextField idParceiroPF;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField nomeParceiroPF;
    private javax.swing.JTextField numeroEParceiroPF;
    private javax.swing.ButtonGroup opcaoSexo;
    private javax.swing.JTextField ruaEParceiroPF;
    private javax.swing.JTextField telefoneParceiroPF;
    // End of variables declaration//GEN-END:variables

    public String getBairroEParceiroPF() {
        return bairroEParceiroPF.getText();
    }

    public JButton getBtCancelar() {
        return btCancelar;
    }

    public String getCepEParceiroPF() {
        return cepEParceiroPF.getText();
    }

    public String getCidadeEParceiroPF() {
        return cidadeEParceiroPF.getText();
    }

    public String getComplementoEParceiroPF() {
        return complementoEParceiroPF.getText();
    }

    public String getCpfParceiroPF() {
        return cpfParceiroPF.getText();
    }

    public String getDataNascParceiroPF() {
        return dataNascParceiroPF.getText();
    }

    public String getEmailParceiroPF() {
        return emailParceiroPF.getText();
    }

    public JComboBox getEstadoEParceiroPF() {
        return estadoEParceiroPF;
    }

    public String getIdParceiroPF() {
        return idParceiroPF.getText();
    }

    public String getNomeParceiroPF() {
        return nomeParceiroPF.getText();
    }

    public String getNumeroEParceiroPF() {
        return numeroEParceiroPF.getText();
    }

    public ButtonGroup getOpcaoSexo() {
        return opcaoSexo;
    }

    public String getRuaEParceiroPF() {
        return ruaEParceiroPF.getText();
    }

    public String getTelefoneParceiroPF() {
        return telefoneParceiroPF.getText();
    }

    public JButton getBtRemover() {
        return btRemover;
    }

    public JButton getBtSalvar() {
        return btSalvar;
    }

    public void setBairroEParceiroPF(String bairroEParceiroPF) {
        this.bairroEParceiroPF.setText(bairroEParceiroPF);
    }

    public void setCepEParceiroPF(String cepEParceiroPF) {
        this.cepEParceiroPF.setText(cepEParceiroPF);
    }

    public void setCidadeEParceiroPF(String cidadeEParceiroPF) {
        this.cidadeEParceiroPF.setText(cidadeEParceiroPF);
    }

    public void setComplementoEParceiroPF(String complementoEParceiroPF) {
        this.complementoEParceiroPF.setText(complementoEParceiroPF);
    }

    public void setCpfParceiroPF(String cpfParceiroPF) {
        this.cpfParceiroPF.setText(cpfParceiroPF);
    }

    public void setDataNascParceiroPF(String dataNascParceiroPF) {
        this.dataNascParceiroPF.setText(dataNascParceiroPF);
    }

    public void setEmailParceiroPF(String emailParceiroPF) {
        this.emailParceiroPF.setText(emailParceiroPF);
    }

    public void setEstadoEParceiroPF(JComboBox estadoEParceiroPF) {
        this.estadoEParceiroPF = estadoEParceiroPF;
    }

    public void setIdParceiroPF(String idParceiroPF) {
        this.idParceiroPF.setText(idParceiroPF);
    }

    public void setNomeParceiroPF(String nomeParceiroPF) {
        this.nomeParceiroPF.setText(nomeParceiroPF);
    }

    public void setNumeroEParceiroPF(String numeroEParceiroPF) {
        this.numeroEParceiroPF.setText(numeroEParceiroPF);
    }

    public void setOpcaoSexo(ButtonGroup opcaoSexo) {
        this.opcaoSexo = opcaoSexo;
    }

    public void setRuaEParceiroPF(String ruaEParceiroPF) {
        this.ruaEParceiroPF.setText(ruaEParceiroPF);
    }

    public void setTelefoneParceiroPF(String telefoneParceiroPF) {
        this.telefoneParceiroPF.setText(telefoneParceiroPF);
    }  


}
